#include <iostream>
#include "Player.h"

using namespace std;

Player::Player()
{
	this->_Hand = Hand();
}

Player::Player(string name)
{
	this->_Name = name;
}

Player::Player(Hand hand)
{
	this->_Hand = hand;
}

Hand Player::getHand()
{
	return this->_Hand;
}

void Player::setHand(Hand hand)
{
	this->_Hand = hand;
}

void Player::addCard(Card card)
{
	this->_Hand.AddCard(card);
}

void Player::changeCards(vector<int> indexList)
{
	this->_Hand.RemoveCards(indexList);
}

string Player::toString()
{
	string str = "";
	str += this->_Name + "\n" + this->_Hand.toString() + "\n";
	return str;
}

string Player::getName()
{
	return this->_Name;
}